package com.caifu.mapper;

import com.caifu.pojo.YsLabel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 标签表 Mapper 接口
 * </p>
 *
 * @author yb
 * @since 2020-10-12
 */
public interface YsLabelMapper extends BaseMapper<YsLabel> {


    /**
     * 获取标签类型 最新的labelCode
     * @param parentCode parentCode
     * @return labelCode
     */
    String getMaxLabelCode(String parentCode);
    /**
    * 
    * 功能描述：根据标签编号查询标签名称
    *
    * @Author  GZ
    * @Date   2020/11/12 17:21
    */
    @Select("select label_name from ys_label where label_code=#{labelCode}")
    String getLabelNameByLabelCode(@Param("labelCode") String labelCode);
}
